ArchLinux Connect to HKU Campus WiFi

We can use one line command to setup HKU Campus WiFi.

  sudo nmcli connection add type wifi con-name HKU ifname '*' ssid HKU wifi-sec.key-mgmt wpa-eap wifi-sec.pairwise ccmp 802-1x.eap peap 802-1x.phase2-auth mschapv2  802-1x.identity "<UID>@hku.hk" 802-1x.anonymous-identity "" 802-1x.password "<PORTAL PASSWORD>" 802-1x.ca-cert "/etc/ssl/certs/ca-certificates.crt" 802-1x.altsubject-matches "DNS:802.1x.hku.hk"

Date: 2026-08-03 Mon

Author: ArcaLunar